﻿using System;
using Volo.Abp.Domain.Entities.Auditing;

namespace YaAppoint.TextTemplates
{
    public class TextTemplate:FullAuditedEntity<Guid>
    {
        public virtual string Name { get; set; }

        /// <summary>
        /// 模板类型
        /// </summary>
        public virtual TemplateType Type { get; set; }

        /// <summary>
        /// 编译后类型名
        /// Language 为 C#时的类型名
        /// </summary>
        public virtual string? TypeName { get; set; }

        /// <summary>
        /// 接口名
        /// Language 为 C#时的类型所实现的接口名
        /// </summary>
        public virtual string? Interface { get; set; }

        /// <summary>
        /// 内容
        /// </summary>   
        public string Content { get; set; } = "";

        /// <summary>
        /// 启用/禁用
        /// </summary>
        public bool IsActive { get; set; } = true;
    }
}
